<?php if(!defined('IN_PISCES')){exit('Access Denied.');}?>
{if !empty($this->data['adList']) && !empty($this->data['adList'][7])}
<!--{loop $this->data['adList'][7] $mk $item}-->
<div class="ad-all mb5">
{$item['code']}
</div>
<!--{/loop}-->
{/if}
<script language="javascript" src="{$this->data['baseurl']}js/jquery/jquery.js"></script>
<script language="javascript" src="{$this->data['baseurl']}js/jquery/liscroll.js"></script>
<div class="nav mb5">
您的位置：
{if $this->data['con']['keyword']==''}<a href="{$this->data['baseurl']}">{$this->data['site']['site_name']}</a>{else}<a href="{url('Default', 'List',array('k'=>$this->data['con']['keyword']))}">所有类目</a>{/if}
{if !empty($this->data['parentCategoryList'])}
<!--{loop $this->data['parentCategoryList'] $cat}-->
 > <a href="{url('Default', 'List',array('c'=>$cat['id'],'k'=>$this->data['con']['keyword']))}">{$cat['name']}</a>
<!--{/loop}-->
{/if}
{if $this->data['con']['keyword']!=''} > {$this->data['con']['keyword']}{/if}
<span class="totalResult">共找到<span class="totalNum">{$this->data['totalNum']}</span>条记录</span>
</div>
<div id="yui-main">
	<div class="yui-b">
		<div class="orderby">
			<ul>
			<li{if $this->data['orderby']['select']==1} class="choose"{/if}><a href="{$this->data['orderby']['num']}">销量高到低</a></li>
			<li{if $this->data['orderby']['select']==2} class="choose"{/if}><a href="{$this->data['orderby']['money']}">热门<strong><font color="red">HOT!</font></strong></a></li>
			<li{if $this->data['orderby']['select']==3} class="choose"{/if}><a href="{$this->data['orderby']['credit']}">信用高到低</a></li>
			<li{if $this->data['orderby']['select']==4} class="choose"{/if}><a href="{$this->data['orderby']['publish']}">最新上架</a></li>
			<li{if $this->data['orderby']['select']==5} class="choose"{/if}><a href="{$this->data['orderby']['rate']}">商家推荐</a></li>
			<li{if $this->data['orderby']['select']==6} class="choose"{/if}><a href="{$this->data['orderby']['priceasc']}">价格从低到高</a></li>
			<li{if $this->data['orderby']['select']==7} class="choose"{/if}><a href="{$this->data['orderby']['pricedesc']}">价格从高到低</a></li>
			</ul>
		</div>
		{if !empty($this->data['hotkeyList'])}
		<div class="ranklist">
			<ul>
			<!--{loop $this->data['hotkeyList'] $key $item}-->
			{if $key%6==0}
			<li>
			{/if}
			<a href="{url('Default','List',array('c'=>$this->data['con']['cid'],'k'=>$item['name'],'o'=>$this->data['con']['orderby']))}" {if $key%4==0}class="hl"{/if}>{$item['name']}</a>
			{if $key%6==5 || $key==count($this->data['hotkeyList'])-1}
			</li>
			{/if}
			<!--{/loop}-->
			</ul>
		</div>
		<script language="javascript">
		$(".ranklist").jCarouselLite({
			auto: 2000,
			speed: 500,
			vertical: true,
			visible: 2
		});
		</script>
		{/if}
		{if $this->data['totalNum']>0}
		{if !empty($this->data['categoryList'])}
		<div class="left-box mt10">
			<div class="left-title border4">
				<strong>当前类目下有以下子目录</strong>
			</div>
			<div class="cat-list mt5 mb5">
				<ul>
				<!--{loop $this->data['categoryList'] $item}-->
				<li><a href="{url('Default','List',array('c'=>$item['id'],'k'=>$this->data['con']['keyword'],'o'=>$this->data['con']['orderby']))}" title="{$item['name']}">{$item['name']}</a></li>
				<!--{/loop}-->
				</ul>
			</div>
		</div>
		{/if}
		{/if}
		<div class="pricelist mt10">
			<ul>
			<li><a href="{url('Default','List',array('c'=>$cat['id'],'k'=>$this->data['con']['keyword'],'o'=>$this->data['con']['orderby'],'price'=>1))}" title="1-50元低价区">1-50元</a></li>
			<li><a href="{url('Default','List',array('c'=>$cat['id'],'k'=>$this->data['con']['keyword'],'o'=>$this->data['con']['orderby'],'price'=>2))}" title="50-100元">50-100元</a></li>
			<li><a href="{url('Default','List',array('c'=>$cat['id'],'k'=>$this->data['con']['keyword'],'o'=>$this->data['con']['orderby'],'price'=>3))}" title="100-200元">100-200元</a></li>
			<li><a href="{url('Default','List',array('c'=>$cat['id'],'k'=>$this->data['con']['keyword'],'o'=>$this->data['con']['orderby'],'price'=>4))}" title="200-500元">200-500元</a></li>
			<li><a href="{url('Default','List',array('c'=>$cat['id'],'k'=>$this->data['con']['keyword'],'o'=>$this->data['con']['orderby'],'price'=>5))}" title="500-1000元">500-1000元</a></li>
			<li><a href="{url('Default','List',array('c'=>$cat['id'],'k'=>$this->data['con']['keyword'],'o'=>$this->data['con']['orderby'],'price'=>6))}" title="1000-2000元">1000-2000元</a></li>
			<li><a href="{url('Default','List',array('c'=>$cat['id'],'k'=>$this->data['con']['keyword'],'o'=>$this->data['con']['orderby'],'price'=>7))}" title="2000-5000元">2000-5000元</a></li>
			<li><a href="{url('Default','List',array('c'=>$cat['id'],'k'=>$this->data['con']['keyword'],'o'=>$this->data['con']['orderby'],'price'=>8))}" title="5000元以上">5000元以上</a></li>
			</ul>
		</div>
		{if $this->data['totalNum']>0}
		{if !empty($this->data['productList'])}
		<div class="grid mt10">
		<ul class="product-list">
			<!--{loop $this->data['productList'] $item}-->
			<li class="product">
				<div class="info">
					<div class="pic" onmouseover="this.className='pic on'" onmouseout="this.className='pic'">
						<a target="_blank" href="{url('Default', 'View',array('id'=>$this->data['cf']->getId($item['num_iid'])))}">
						<img alt="{strip_tags($item['title'])}" src="{$this->data['baseurl']}images/loading.gif" u="{EncodeImg $item['pic_url']}_b.{$this->data['cf']->getFileExt($item['pic_url'])}" />
						</a>
					</div>
					<div style="padding-left:10px;">
						<div class="name">
						<a target="_blank" href="{url('Default', 'View',array('id'=>$this->data['cf']->getId($item['num_iid'])))}">{strip_tags($item['title'])}</a>
						</div>
						<div class="price">
						<span class="red16">￥{$item['price']}</span>
						</div>
						{if $this->data['return']['rate']>0 && round($item['commission']*$this->data['return']['rate']/100,2)>0}
						<div class="mt5">
						<span class="num">获得返现：&nbsp;<span class="red strong">￥{round($item['commission']*$this->data['return']['rate']/100,2)}</span></span>
						</div>
						{else}
						<div class="mt5">
						<span class="num">&nbsp;</span>
						</div>
						{/if}
						<div class="mt5">
						<span class="num">近期售出：&nbsp;<span class="red strong">{$item['commission_num']}</span>件</span>
						</div>
						<div class="click-button">
							<a linktype="click-url" href="#" nid="{$item['num_iid']}" class="buy" target="_blank" onclick="return httpLog('/log-list-2-{$item['num_iid']}');"><img height="33" width="115" border="0" style="cursor: pointer;" src="{$this->data['baseurl']}images/button_buy.gif"></a>
						</div>
					</div>
				</div>
			</li>
			<!--{/loop}-->
		</ul>
		</div>
		<div id="pager">
		{$this->data['pages']}
		</div>
		{/if}
		{else}
		<div class="noresult border4 mt10">
		<div class="info">没有找到符合条件的商品，请尝试刷新下页面，或者我们为您准备了以下商品，也许您会喜欢：</div>
		</div>
		<div class="ad gap">
		</div>
		{if $this->data['config']['search8']['enable'] && $this->data['config']['search8']['keyword']!=''}<script language="javascript">setTimeout(function(){document.location="{url('Default','Search8',array('q'=>$this->data['cf']->getRandKeyword($this->data['config']['search8']['keyword'])))}";}, 2000);</script>{/if}
		{/if}
	</div>
</div>
<div class="yui-b">
	{component frontend left}
	{if !empty($this->data['adList']) && !empty($this->data['adList'][6])}
	<!--{loop $this->data['adList'][6] $mk $item}-->
	<div class="index-left-ad mt5">
	{$item['code']}
	</div>
	<!--{/loop}-->
	{/if}
</div>
{if !empty($this->data['adList']) && !empty($this->data['adList'][8])}
<div class="clear"></div>
<!--{loop $this->data['adList'][8] $mk $item}-->
<div class="ad-all mt5">
{$item['code']}
</div>
<!--{/loop}-->
{/if}
<script language="javascript">
var defaultClickUrl	= "{$this->data['clickUrl']}";
replaceLink();
replaceImage();
</script>